<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="parent">
    parent
    <div class="child">
      child
    </div>
  </div>
  <script>
    let father = document.querySelector('.parent')
    let child = document.querySelector('.child')

    const onCLickChild = (event) => {
      console.log('child');
    }
    const onCLickParent = (event) => {
      child.removeEventListener('click', onCLickChild)
      console.log('parent');
    }

    father.addEventListener('click', onCLickParent, true)
    child.addEventListener('click', onCLickChild)



  </script>
</body>

</html>